.monitor-container {
  display: flex;
  width: 100%;
  height: calc(100vh - 180px);
  min-height: 500px;
}

.monitor-sidebar {
  width: 240px;
  padding: 16px;
  border-right: 1px solid #e8e8e8;
  background-color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.monitor-tree {
  flex: 1;
  overflow-y: auto;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 8px;
}

.monitor-view-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #000;
  position: relative;
  overflow: hidden;
}

.monitor-view-content {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}

.monitor-view-item {
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.monitor-view-item.highlight {
  border: 2px solid #1890ff;
}

.monitor-player {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.player-title {
  height: 32px;
  line-height: 32px;
  padding: 0 12px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-content {
  flex: 1;
  position: relative;
}

.video-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #000;
}

.monitor-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  background-color: #1f1f1f;
}

.monitor-view-controls {
  height: 48px;
  background-color: #1f1f1f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.layout-controls {
  display: flex;
  gap: 8px;
}

.back-icon {
  margin-right: 8px;
  cursor: pointer;
  font-size: 16px;
}

.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  
  // 添加这些样式确保全屏时正确显示
  display: flex;
  flex-direction: column;
}

.fullscreen .monitor-view-content {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}

.fullscreen .monitor-view-item {
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}